package cn.est.service;

import cn.est.exceptions.RedisException;
import cn.est.exceptions.TokenProtectedException;
import cn.est.pojo.Users;
import cn.est.vo.TokenVo;

/**
 * @ClassName TokenService
 * @Description TODO
 * @Author yaozhaobao
 * @Date 2021/4/6 11:29
 * @Version 1.0
 **/

public interface TokenService {




    public TokenVo genenrateToken(Users users);

    public TokenVo refreshToken(String oldtoken) throws RedisException, TokenProtectedException;

    public void saveToken(String token, Users users);

    public Users getLoginUser(String token);

}
